package com.situ.crm.service;

import com.situ.crm.pojo.entity.User;
import com.situ.crm.util.JSONResult;
import com.situ.crm.util.LayUITableResult;

import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import java.util.List;
import java.util.Map;

public interface IUserService {

	LayUITableResult selectByPage(Integer page, Integer limit, User user);

	void deleteById(Integer id);

	void deleteAll(String ids);

	void insert(User user, String roles);

	User selectByPrimaryKey(Integer userId);

	Map<String, Object> selectUserAndRoles(Integer userId);

	void update(User user, String roles);

	User login(String name, String password, HttpSession session);

	List<User> selectXiaoShouUser();
}
